package com.study.opensource.spring.enable;

import com.study.opensource.spring.enable.annotation.EnableServer;
import com.study.opensource.spring.enable.config.Server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;

/**
 * @author 许棒棒
 * @className com.study.study.opensource.spring.enable.SpringEnableApplication
 * @description TODO 类描述
 * @date 2021/04/17 22:10:50
 */
@EnableServer(type = Server.Type.FTP)
@Configuration
@SpringBootApplication
public class SpringEnableApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringEnableApplication.class, args);
//
//        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
//        context.register(SpringEnableApplication.class);
//        context.refresh();
//        Server bean = context.getBean(Server.class);
//        bean.start();

    }
}
